Skip to content

chore(benchmarks): require(esm) on ESM-only packages#5527

Merged
mcollina merged 1 commit into
nodejs:mainfrom
slagiewka:benchmark_require_esm
Jul 11, 2026
Merged

chore(benchmarks): require(esm) on ESM-only packages#5527
mcollina merged 1 commit into
nodejs:mainfrom
slagiewka:benchmark_require_esm

Conversation

@slagiewka

Copy link
Copy Markdown
Contributor

This relates to...

N/A

Rationale

Since v8 requires node >= 22.19 and some of the bench dependencies also moved past node v20 (e.g. cronometro), we can use require(esm) and remove the special handling previosuly required for these packages.

Status

Since v8 requires node >= 22.19 and some of the bench dependencies also
moved past node v20 (e.g. cronometro), we can use `require(esm)` and
remove the special handling previosuly required for these packages.
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.44%. Comparing base (0dee09d) to head (f38ff85).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5527   +/-   ##
=======================================
  Coverage   93.44%   93.44%           
=======================================
  Files         110      110           
  Lines       37329    37329           
=======================================
  Hits        34883    34883           
  Misses       2446     2446           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 7a625eb into nodejs:main Jul 11, 2026
36 checks passed
@slagiewka slagiewka deleted the benchmark_require_esm branch July 12, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants